

import request from '@/utils/request';

//添加水印
export async function addWater(params) {
  return request('/b/filetool/addWater', {
    method: 'POST',
    data: params,
  });
}
//脱敏
export async function desense(params) {
  return request('/b/filetool/desense', {
    method: 'POST',
    data: params,
  });
}
//转toPdf
export async function toPdf(params) {
  return request('/b/filetool/toPdf', {
    method: 'POST',
    data: params,
  });
}
//加密
export async function enc(params) {
  return request('/b/filetool/enc', {
    method: 'POST',
    data: params,
  });
}

/**
 * 解密
 * @param params
 * @returns {Promise<void>}
 */
export async function deEnc(params) {
  return request('/b/filetool/deEnc', {
    method: 'POST',
    data: params,
  });
}

export async function uploadFiles(params) {
  return request('/b/filetool/upload', {
    method: 'post',
    // processData: false,
    data: params,
    headers: {'Content-Type': 'multipart/form-data'},
  });
}
